package routers

import (
	"awesome/middlewares"
	"github.com/gin-gonic/gin"
)

var Api *gin.RouterGroup

func InitRouters(r *gin.Engine) {
	r.Use(middlewares.Cors())
	r.Use(middlewares.AuthMiddleware("湖北宜昌开发区", "123456"))
	api := r.Group("/api")
	Api = api
	InitUser()
	InitGroup()
	InitDevice()
}
